<?php 
require_once('includes/classes/core.php');
require_once ('includes/classes/wsdl.class.php');
header('Content-Type: text/html; charset=utf-8');

$wsdl = new wsdl('http://192.168.215.30/services/public/callcentersupportservice.asmx?wsdl', 'CallCenter', '2cc4541a13009ba5da9b90a146d10369', '192.168.200.145', 'lasha', 'index.php');

$name = $_REQUEST['name'];
//$name = 'ლაშა ბანძელაძე';

function checkuserid($user){
	$res = mysql_fetch_assoc(mysql_query("SELECT crystal_users.id
										  FROM crystal_users
										  WHERE crystal_users.`name`= '$user'"));
	return $res['id'];

}


	$user_id  = checkuserid($name);
	$userinfo = $wsdl->GetUserInfo($user_id);
	$image		  = $userinfo[Image];
	$Comment 	  = $userinfo[Comment];
	$Mobile	 	  = $userinfo[Mobile];
	$Phone	 	  = $userinfo[Phone];
	$Address	  = $userinfo[Address];
	$PositionName = $userinfo[PositionName];
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Crystalbet</title>
	<style type="text/css">
		.tdstyle{
			text-align: left;
			vertical-align:middle;
			font-size: 12px;
		}
		td{
			font-size: 12px;
		}
    </style>
</head>


<body style="width: 600px; margin: auto;">
<div style="float: left">
    <table style="margin: 0; padding: 0;">
        <tr style="margin: 0; padding: 0;">
            <td colspan="3" style="margin: 0; padding: 0;">
                <img src="<?php echo $image ?>" alt="" height="200" width="200" style="margin: 0; padding: 0;"/>
            </td>
        </tr>
    </table>
</div>
<div style="float: left; width: 350px; margin-left: 20px;">        
        <table style="width: 100%;">
        <tr>
            <td style="width: 125px; text-align: center; color: #06A; font-weight: bold; font-size: 13px;" colspan="2">ოპერატორი</td>  
        </tr>
        <tr>
            <td class="tdstyle" style="width: 150px;"><b>სახელი, გვარი:</b></td>
            <td ><b><?php echo $_REQUEST['name'];?></b></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>პირადი ნომერი:</b></td>
            <td ></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>თანამდებობა:</b></td>
            <td ><b><?php echo $PositionName;?></b></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>მისამართი:</b></td>
            <td ><b><?php echo $Address;?></b></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>სახლის ტელ:</b></td>
            <td ><b><?php echo $Phone;?></b></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>მობილური ტელ:</b></td>
            <td ><b><?php echo $Mobile;?></b></td>
        </tr>
        <tr>
            <td class="tdstyle"><b>შენიშვნა:</b></td>
            <td ><b><?php echo $Comment;?></b></td>
        </tr>
    </table>

    <table style="width: 100%; margin-top: 10px;">
        
        <tbody class="report_info">
            <tr>
                <td style="width: 125px; text-align: center; color: #06A; font-weight: bold; font-size: 13px;" colspan="2"><b>ზოგადი ინფო</b></td>
                
            </tr>
            <tr>
            <?php 
            $name 		= $_REQUEST['name'];
            $start_time = $_REQUEST['start_time'];
            $end_time 	= $_REQUEST['end_time'];
            
            $start_time = $db->convertDateTime($start_time);
            $end_time = $db->convertDateTime($end_time);
            
	           $res = mysql_fetch_array(mysql_query("	SELECT 	SEC_TO_TIME(sum(TIMESTAMPDIFF(second,
																IF(person_work_graphic.`start`< '$start_time','$start_time', person_work_graphic.`start`),
																IF(person_work_graphic.`end`  > '$end_time', '$end_time', person_work_graphic.`end`)))),
																sum(TIMESTAMPDIFF(minute,
																IF(person_work_graphic.`start`< '$start_time','$start_time', person_work_graphic.`start`),
																IF(person_work_graphic.`end`  > '$end_time', '$end_time', person_work_graphic.`end`)))
														FROM 	person_work_graphic
														JOIN 	crystal_users ON person_work_graphic.person_id = crystal_users.id 										
														WHERE  	crystal_users.`name` = '$name' 
														AND  	person_work_graphic.actived=1 AND crystal_users.actived=1										
														AND   	(person_work_graphic.`start` >= '$start_time' OR 	person_work_graphic.`end` 	>= '$start_time')
														AND   	(person_work_graphic.`start` <= '$end_time' OR  person_work_graphic.`end` 	<= '$end_time')
	                                                "));
            ?>
                <td class="tdstyle" style="width: 150px;"><b>გეგმიური სთ-ები:</b></td>
                <td><b><?php echo $res[0].' სთ';?></b></td>
            </tr>
            <tr>
           <?php 
            $name 		= $_REQUEST['name'];
            $start_time = $_REQUEST['start_time'];
            $end_time 	= $_REQUEST['end_time'];
            
            $start_time = $db->convertDateTime($start_time);
            $end_time = $db->convertDateTime($end_time);
            
	            $res_total_inc = mysql_fetch_array(mysql_query(" SELECT SEC_TO_TIME(SUM(asterisk_incomming.duration)),
																		SUM(asterisk_incomming.duration)
												                 FROM  asterisk_incomming
												                 JOIN  crystal_users ON asterisk_incomming.user_id = crystal_users.id
												                 WHERE crystal_users.`name`='$name'
												                       and asterisk_incomming.dst_queue=2392200
												                       AND asterisk_incomming.disconnect_cause != 'ABANDON'
												                       AND (asterisk_incomming.call_datetime) >= '$start_time'
												                       AND (asterisk_incomming.call_datetime) <= '$end_time'
												                "));

	            $res_total_out = mysql_fetch_array(mysql_query(" SELECT SEC_TO_TIME(SUM(asterisk_outgoing.duration)),
																		SUM(asterisk_outgoing.duration)
												                 FROM   asterisk_outgoing
												                 JOIN   crystal_users ON asterisk_outgoing.user_id = crystal_users.id
												                 WHERE  crystal_users.`name`='$name'
														                AND (asterisk_outgoing.call_datetime) >= '$start_time'
														                AND (asterisk_outgoing.call_datetime) <= '$end_time'
	                "));
            
            $res_res_total 	= $res_total_inc[1]+$res_total_out[1];
            //სულ//
            $hh 			= floor($res_res_total/3600);
            $nashti 		= $res_res_total % 3600;
            $i				= floor($nashti/60);
           	$s 				= $nashti % 60;
           	
           	?>
                   <td class="tdstyle"><b>ისაუბრა სულ:</b></td>
                   <td><b><?php echo $hh .':'.$i.':'.$s.' სთ'; ?></b></td>
            </tr>
            <tr>
                   <td style="text-align: right;"><i><b>შემომავალი ზარზე:</b></i></td>
                   <td><b><?php echo $res_total_inc[0].' სთ'; ?></b></td>
            </tr>
            <tr>
                   <td style="text-align: right;"><i><b>გამავალ ზარზე:</b></i></td>
                   <td><b><?php echo $res_total_out[0].' სთ'; ?></b></td>
            </tr>
            <tr>
            
                   <td class="tdstyle"><b>დატვირთვა:</b></td>
                   <td><b><?php echo ROUND((($res_res_total/60/$res[1])*100),2).' %'; ?></b></td>
            </tr>
        </tbody>
    </table>
    
<table style="margin-top: 10px; width: 100%;">
    <tbody id="answer_call_info">
        <tr> 
          <td style="width: 180px; text-align: center; color: #06A; font-weight: bold; font-size: 13px;" colspan="2"><b>გამავალი ზარები</b></td>
        </tr>
        <tr> 
        <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
	        $reso = mysql_fetch_array(mysql_query("SELECT  	COUNT(*) ,
	                                        			  	COUNT(*) ,
	                                                     	SEC_TO_TIME(SUM(duration)/COUNT(*)),
	                                                     	SEC_TO_TIME(SUM(wait_time)/COUNT(*))            
			                                        FROM 	`asterisk_outgoing`
			                                        JOIN 	crystal_users ON asterisk_outgoing.user_id = crystal_users.id
			                                        WHERE 	crystal_users.`name`='$name'
					                                        AND (asterisk_outgoing.call_datetime) >= '$start_time'
					                                        AND (asterisk_outgoing.call_datetime) <= '$end_time'
		                                                "));
			$reso1 = mysql_fetch_array(mysql_query("SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%გამავალი%'
													AND `all`.user1='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'"));
			$reso2 = mysql_fetch_array(mysql_query("SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%დაუმ.გამავ%'
													AND `all`.user1='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'"));
		$all_out=$reso1[0]+	$reso2[0];
		?>
          <td class="tdstyle" style="width: 150px;"><b>სულ:</b></td>
          <td><b><?php echo $all_out; ?></b><b> ზარი</b></td>
        </tr>
        <tr> 
          <td class="tdstyle"><b>დამუშავებული:</b></td>
          <td><b><?php echo $reso1[0]; ?></b> <b>ზარი</b></td>
        </tr>
        <tr> 
          <td class="tdstyle"><b>დაუმუშავებული:</b></td>
          <td><b><?php echo $reso2[0]; ?></b> <b>ზარი</b></td>
        </tr>
        <tr>        
          <td class="tdstyle"><b>საშ. ხანგრძლივობა:</b></td>
          <td><b><?php echo $reso[2].' სთ'; ?></b> <b>წამი</b></td>
        </tr>
        <tr>         
          <td class="tdstyle"><b>ლოდინის საშ. ხანგრძლივობა:</b></td>
          <td><b><?php echo $reso[3].' სთ'; ?></b> <b>წამი</b></td>
        </tr>
    </tbody>
</table>
<table style="margin-top: 10px; width: 100%;">
    <tbody id="answer_call_info">
        <tr> 
          <td style="width: 180px; text-align: center; color: #06A; font-weight: bold; font-size: 13px;" colspan="2"><b>დავალებები</b></td>
        </tr>
        <tr> 
        <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
	        $reso = mysql_fetch_array(mysql_query("SELECT COUNT(*)
													FROM 	task
													left JOIN  crystal_users ON task.responsible_user_id=crystal_users.id
													WHERE crystal_users.`name` = '$name'
													AND  `task`.`date` >= '$start_time' 
													AND  `task`.`date` <= '$end_time' 
													AND  `task`.`status` = 3
		                                                "));
        ?>
          <td class="tdstyle" style="width: 150px;"><b>სულ:</b></td>
          <td><b><?php echo $reso[0]; ?></b><b> დავალება</b></td>
        </tr>
        <tr> 
        <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
	        $reso = mysql_fetch_array(mysql_query("SELECT SEC_TO_TIME(ROUND(SUM(TIMESTAMPDIFF(SECOND,task.planned_end_date,task.fact_end_date))/COUNT(*),0))
													FROM  task
													left  JOIN  crystal_users ON task.responsible_user_id=crystal_users.id
													WHERE crystal_users.`name`='$name'
													AND  `task`.`date` >= '$start_time' 
													AND  `task`.`date` <= '$end_time' 
													AND  `task`.`status` = 3
		                                                "));
        ?>
          <td class="tdstyle" style="width: 150px;"><b>შესრულების საშ. დრო:</b></td>
          <td><b><?php echo $reso[0]; ?></b></td>
        </tr>
   </tbody>
</table>

<table style="width: 100%; margin-top: 10px;">
    <tbody id="answer_call_info">
    <tr> 
      <td style="width: 180px; text-align: center; color: #06A; font-weight: bold; font-size: 13px;" colspan="2"><b>შემომავალი ზარები</b></td>
    </tr>
    <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
        	$res_1 = mysql_fetch_array(mysql_query(" SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%შემომავალი%'
													AND `all`.user2='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'
                                            "));
			$res2 = mysql_fetch_array(mysql_query(" SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%დაუმ.შემომავ%'
													AND `all`.user2='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'
					"));
$napasuxebi=$res_1[0]+$res2[0];
    ?> 
    <tr>
    <td class="tdstyle" style="width: 150px;"><b>ნაპასუხები</b></td>
      <td><b><?php echo $napasuxebi.' ზარი'; ?></b></td>
    </tr>
    <tr> 
    <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
        	$res1 = mysql_fetch_array(mysql_query(" SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%შემომავალი%'
													AND `all`.user2='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'
                                            "));
				

    ?> 
      <td class="tdstyle"><b>დამუშავებული</b></td>
      <td><b><?php  echo $res1[0].' ზარი'; ?></b></td>
    </tr>
     <?php 
        $name 		= $_REQUEST['name'];
        $start_time = $_REQUEST['start_time'];
        $end_time 	= $_REQUEST['end_time'];
        
        $start_time = $db->convertDateTime($start_time);
        $end_time = $db->convertDateTime($end_time);
        
        	$resss = mysql_fetch_array(mysql_query(" SELECT  COUNT(*)
													FROM `all`
													WHERE `all`.file_name LIKE '%დაუმ.შემომავ%'
													AND `all`.user2='$name'
													AND `all`.`date` BETWEEN '$start_time' AND '$end_time'
                                            "));
    ?> 
    <tr>
      <td class="tdstyle"><b>დაუმუშავებელი:</b></td>
      <td><b><?php echo $resss[0].' ზარი'; ?></b></td>
    </tr>
    <tr>
     <?php 
            $name 		= $_REQUEST['name'];
            $start_time = $_REQUEST['start_time'];
            $end_time 	= $_REQUEST['end_time'];
            
            $start_time = $db->convertDateTime($start_time);
            $end_time = $db->convertDateTime($end_time);
            
	            $res5 = mysql_fetch_array(mysql_query(" SELECT 	SEC_TO_TIME(ROUND(SUM(asterisk_incomming.duration)/COUNT(*),0))
	                                                    FROM   	asterisk_incomming
	                                                    JOIN   	crystal_users ON asterisk_incomming.user_id = crystal_users.id
	                                                    WHERE  	crystal_users.`name`='$name'
			                                                    AND asterisk_incomming.disconnect_cause != 'ABANDON'
			                                                    AND (asterisk_incomming.call_datetime) >= '$start_time'
			                                                    AND (asterisk_incomming.call_datetime) <= '$end_time'
	                                                ")); 
            ?>
      <td class="tdstyle"><b>საშ. ხანგრძლივობა:</b></td>
      <td><b><?php echo $res5[0].' წამი'; ?></b></td>
    </tr>
    <tr>
    <?php 
            $name 		= $_REQUEST['name'];
            $start_time = $_REQUEST['start_time'];
            $end_time 	= $_REQUEST['end_time'];
            
            $start_time = $db->convertDateTime($start_time);
            $end_time 	= $db->convertDateTime($end_time);
            
	            $res3 = mysql_fetch_array(mysql_query("  SELECT SEC_TO_TIME(ROUND(SUM(asterisk_incomming.wait_time)/COUNT(*),0))
																
	                                                     FROM 	asterisk_incomming
	                                                     JOIN 	crystal_users ON asterisk_incomming.user_id = crystal_users.id
	                                                     WHERE 	crystal_users.`name`='$name'
			                                                    AND asterisk_incomming.disconnect_cause != 'ABANDON'
			                                                    AND (asterisk_incomming.call_datetime) >= '$start_time'
			                                                    AND (asterisk_incomming.call_datetime) <= '$end_time'
		                                                ")); 
            ?>
      <td class="tdstyle"><b>ლოდინის საშ. ხანგრძლივობა:</b></td>
      <td><b><?php echo $res3[0].' წამი'; ?></b></td>
    </tr>
    
    <tr>
    	<td class="tdstyle"><b>კოეფიციენტი:</b></td>
    	<td><b><?php echo ROUND($res1[0]/$napasuxebi,2); ?></b></td>
    </tr>
    </tbody>
</table>

<table style="margin-top: 10px; width: 100%;">
    <tbody id="disconnection_cause_unanswer">
    <tr>
    	<td colspan="3" style="text-align: center; color: #06A; font-weight: bold; font-size: 13px;"><b>კავშირის გაწყვეტის მიზეზი</b></td>
    </tr>
    <tr>
    <?php 
           $name 	   = $_REQUEST['name'];
	       $start_time = $_REQUEST['start_time'];
	       $end_time   = $_REQUEST['end_time'];
	       
	       $start_time = $db->convertDateTime($start_time);
	       $end_time   = $db->convertDateTime($end_time);
	       
	            $res = mysql_fetch_array(mysql_query("  SELECT 	COUNT(*)
			                                            FROM 	asterisk_incomming
			                                            JOIN 	crystal_users ON asterisk_incomming.user_id = crystal_users.id
			                                            WHERE 	crystal_users.`name`='$name'
					                                            AND asterisk_incomming.dst_queue='2392200'
			                                                    AND asterisk_incomming.disconnect_cause != 'ABANDON'
					                                            AND (asterisk_incomming.call_datetime) >= '$start_time'
					                                            AND (asterisk_incomming.call_datetime) <= '$end_time'
																AND asterisk_incomming.disconnect_cause='COMPLETECALLER'  
                                                ")); 
            ?>
      <td class="tdstyle" style="width: 150px;"><b>აბონენტმა გათიშა:</b></td>
      <td><b><?php echo $res[0].' ზარი'; ?></b></td>
      <td></td>
    </tr>
    <tr>
    <?php 
           $name 	   = $_REQUEST['name'];
	       $start_time = $_REQUEST['start_time'];
	       $end_time   = $_REQUEST['end_time'];
	       
	       $start_time = $db->convertDateTime($start_time);
	       $end_time   = $db->convertDateTime($end_time);
	       
	            $res = mysql_fetch_array(mysql_query("  SELECT 	COUNT(*)
			                                            FROM 	asterisk_incomming
			                                            JOIN 	crystal_users ON asterisk_incomming.user_id = crystal_users.id
			                                            WHERE 	crystal_users.`name`='$name'
					                                            AND asterisk_incomming.dst_queue='2392200'
			                                                    AND asterisk_incomming.disconnect_cause != 'ABANDON'
					                                            AND (asterisk_incomming.call_datetime) >= '$start_time'
					                                            AND (asterisk_incomming.call_datetime) <= '$end_time'
																AND asterisk_incomming.disconnect_cause='COMPLETEAGENT'  
                                                ")); 
            ?> 
      <td class="tdstyle"><b>ოპერატორმა გათიშა:</b></td>
      <td><b><?php echo $res[0].' ზარი'; ?></b></td>
      <td></td>
    </tr>
    </tbody>
</table>

<table style="margin-top: 10px; width: 100%;" >
<tbody id="service_level">
                <tr> 
                    <td colspan="4" style="text-align: center; color: #06A; font-weight: bold; font-size: 13px;"><b>მომსახურების დონე(Service Level)</b></td>
                </tr>
                 <?php 
       $name 	   = $_REQUEST['name'];
       $start_time = $_REQUEST['start_time'];
       $end_time   = $_REQUEST['end_time'];
       
       $start_time = $db->convertDateTime($start_time);
       $end_time   = $db->convertDateTime($end_time);
       
           		$res_service_level = mysql_query("	SELECT 	asterisk_incomming.wait_time
													from   	asterisk_incomming
													JOIN 	crystal_users ON crystal_users.id=asterisk_incomming.user_id
													WHERE 	crystal_users.`name`='$name'
															AND (asterisk_incomming.call_datetime) >= '$start_time'
															AND (asterisk_incomming.call_datetime) <= '$end_time'
							              ");
	$w15 = 0;
	$w30 = 0;
	$w45 = 0;
	$w60 = 0;
	$w75 = 0;
	$w90 = 0;
	$w91 = 0;
	
	
	
	
	while ($res_service_level_r = mysql_fetch_assoc($res_service_level)) {
	
		if ($res_service_level_r['wait_time'] < 15) {
			$w15++;
		}
	
		if ($res_service_level_r['wait_time'] < 30){
			$w30++;
		}
	
		if ($res_service_level_r['wait_time'] < 45){
			$w45++;
		}
	
		if ($res_service_level_r['wait_time'] < 60){
			$w60++;
		}
	
		if ($res_service_level_r['wait_time'] < 75){
			$w75++;
		}
	
		if ($res_service_level_r['wait_time'] < 90){
			$w90++;
		}
	
		$w91++;
	
	}
	
	$d30 = $w30 - $w15;
	$d45 = $w45 - $w30;
	$d60 = $w60 - $w45;
	$d75 = $w75 - $w60;
	$d90 = $w90 - $w75;
	$d91 = $w91 - $w90;
	
	
	$p15 = round($w15 * 100 / $w91);
	$p30 = round($w30 * 100 / $w91);
	$p45 = round($w45 * 100 / $w91);
	$p60 = round($w60 * 100 / $w91);
	$p75 = round($w75 * 100 / $w91);
	$p90 = round($w90 * 100 / $w91);
	
	
	
	
	
	echo '
							<tr> 
                    <td><b>პასუხი</b></td>
                    <td><b>რაოდენობა</b></td>
                    <td><b>დელტა</b></td>
                    <td><b>%</b></td>
                </tr>
							<tr class="odd">
						 		<td><b>15 წამში</b></td>
					 			<td><b>'.$w15.'</b></td>
					 			<td></td>
					 			<td><b>'.$p15.'%</b></td>
					 		</tr>
				 			<tr>
						 		<td><b>30 წამში</b></td>
					 			<td><b>'.$w30.'</b></td>
					 			<td><b>'.$d30.'</b></td>
					 			<td><b>'.$p30.'%</b></td>
					 		</tr>
				 			<tr class="odd">
						 		<td><b>45 წამში</b></td>
					 			<td><b>'.$w45.'</b></td>
					 			<td><b>'.$d45.'</b></td>
					 			<td><b>'.$p45.'%</b></td>
					 		</tr>
				 			<tr>
						 		<td><b>60 წამში</b></td>
					 			<td><b>'.$w60.'</b></td>
					 			<td><b>'.$d60.'</b></td>
					 			<td><b>'.$p60.'%</b></td>
					 		</tr>
				 			<tr class="odd">
						 		<td><b>75 წამში</b></td>
					 			<td><b>'.$w75.'</b></td>
					 			<td><b>'.$d75.'</b></td>
					 			<td><b>'.$p75.'%</b></td>
					 		</tr>
					 		<tr>
						 		<td><b>90 წამში</b></td>
					 			<td><b>'.$w90.'</b></td>
					 			<td><b>'.$d90.'</b></td>
					 			<td><b>'.$p90.'%</b></td>
					 		</tr>
					 		<tr class="odd">
						 		<td><b>90+ წამში</b></td>
					 			<td><b>'.$w91.'</b></td>
					 			<td><b>'.$d91.'</b></td>
					 			<td><b>100%</b></td>
					 		</tr>
							';
            ?> 
                
		</tbody>
		</table>
    </div>
</body>
</html>